package top.wyix.framework.dict.config;

import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;
import top.wyix.framework.dict.core.util.DictFrameworkUtils;
import top.wyix.module.system.api.dict.DictDataApi;

/**
 * @author wangdx
 */
@AutoConfiguration
public class DictAutoConfiguration {
    @Bean
    @SuppressWarnings({"InstantiationOfUtilityClass", "SpringJavaInjectionPointsAutowiringInspection"})
    public DictFrameworkUtils dictUtils(DictDataApi dictDataApi) {
        DictFrameworkUtils.init(dictDataApi);
        return new DictFrameworkUtils();
    }
}
